import { createRouter, createWebHistory } from 'vue-router';
import homeRouter from './home';
import otherRouter from './other';
import shopRouter from './shop';
import userRouter from './user';
const router = createRouter({
    history: createWebHistory('/'),
    routes:[
        {
            path:'/',
            redirect:'/home',
            component:() => import('@/views/Home/index.vue'),
            children:[
                ...homeRouter,
                ...shopRouter,
                ...userRouter,
                ...otherRouter
            ]
        }
    ]
})

export default router;